<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The CairoFontType class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.cairofontslant.html">CairoFontSlant</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.cairofontweight.html">CairoFontWeight</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.cairofonttype" class="reference">

 <h1 class="title">The CairoFontType class</h1>
 

 <div class="partintro"><p class="verinfo">(No version information available, might only be in Git)</p>


  <div class="section" id="cairofonttype.intro">
   <h2 class="title">简介</h2>
   <p class="para">    
    CairoFontType class is an abstract final class that contains constants used to describe the type
    of a given <a href="class.cairofontface.html" class="classname">CairoFontFace</a> or <a href="class.cairoscaledfont.html" class="classname">CairoScaledFont</a>.
    The font types are also known as &quot;font backends&quot; within cairo.
  </p>
  <p class="para">
    The type of a CairoFontFace is determined by the how it is created, an example would be the
    <span class="methodname"><strong>CairoToyFontFace::__construct()</strong></span>.
    The <a href="class.cairofontface.html" class="classname">CairoFontFace</a> type can be queried with
    <span class="methodname"><a href="cairofontface.gettype.html" class="methodname">CairoFontFace::getType()</a></span> or <span class="function"><a href="function.cairo-font-face-get-type.html" class="function">cairo_font_face_get_type()</a></span>
</p>
<p class="para">
    The various <a href="class.cairofontface.html" class="classname">CairoFontFace</a> functions can be used with a font face of any type.
</p>
<p class="para">
    The type of a <a href="class.cairoscaledfont.html" class="classname">CairoScaledFont</a> is determined by the type of the
    <a href="class.cairofontface.html" class="classname">CairoFontFace</a> passed to 
    <span class="methodname"><a href="cairoscaledfont.construct.html" class="methodname">CairoScaledFont::__construct()</a></span> or
    <span class="function"><a href="function.cairo-scaled-font-create.html" class="function">cairo_scaled_font_create()</a></span>.
    The scaled font type can be queried with <span class="methodname"><a href="cairoscaledfont.gettype.html" class="methodname">CairoScaledFont::getType()</a></span> or
    <span class="function"><a href="function.cairo-scaled-font-get-type.html" class="function">cairo_scaled_font_get_type()</a></span>.
   </p>
  </div>


  <div class="section" id="cairofonttype.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">CairoFontType</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 常量 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairofonttype.html#cairofonttype.constants.toy"><var class="varname">TOY</var></a></var>
     <span class="initializer"> = 0</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairofonttype.html#cairofonttype.constants.ft"><var class="varname">FT</var></a></var>
     <span class="initializer"> = 1</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairofonttype.html#cairofonttype.constants.win32"><var class="varname">WIN32</var></a></var>
     <span class="initializer"> = 2</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairofonttype.html#cairofonttype.constants.quartz"><var class="varname">QUARTZ</var></a></var>
     <span class="initializer"> = 3</span>
    ;</div>

    
   }</div>


  </div>
  

  <div class="section" id="cairofonttype.constants">
   <h2 class="title">预定义常量</h2>
   <dl>


    
     <dt id="cairofonttype.constants.toy"><strong><code>CairoFontType::TOY</code></strong></dt>

     <dd>

      <p class="para">The font was created using <strong class="classname">CairoToyFont</strong> api</p>
     </dd>

    

    
     <dt id="cairofonttype.constants.ft"><strong><code>CairoFontType::FT</code></strong></dt>

     <dd>

      <p class="para">The font is of type <strong class="classname">CairoFreeType</strong></p>
     </dd>

    

    
     <dt id="cairofonttype.constants.win32"><strong><code>CairoFontType::WIN32</code></strong></dt>

     <dd>

      <p class="para">The font is of type Win32</p>
     </dd>

    

    
     <dt id="cairofonttype.constants.quartz"><strong><code>CairoFontType::QUARTZ</code></strong></dt>

     <dd>

      <p class="para">The font is of type Quartz</p>
     </dd>

    
    
    
     <dt id="cairofonttype.constants.user"><strong><code>CairoFontType::USER</code></strong></dt>

     <dd>

      <p class="para">The font was create using cairo&#039;s user font api</p>
     </dd>

    

   </dl>

  </div>



 </div>

 

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.cairofontslant.html">CairoFontSlant</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.cairofontweight.html">CairoFontWeight</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
